/*************************************
 * 
 *
 * create by dirkcai
 ***********************************/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "buffer.h"
#include "epolleventhandler.h"


const int BUFSIZE = 512;

class EpollManager;

class EpollEventHandlerImpl : public EpollEventHandler
{
public:
	EpollEventHandlerImpl( EpollManager * ptEpollEventMng, Processor * ptProcessor)
	   	: EpollEventHandler( ptEpollEventMng, ptProcessor ){};	

protected:
	virtual int OnAccept( epoll_event * ptEvent );
	virtual int OnRead( epoll_event * ptEvent );
	virtual int OnWrite( epoll_event * ptEvent );
	virtual void DelEvent( epoll_event * ptEvent , int event_mode) ;
};


